import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//引入element-ui与相关的样式
import 'element-ui/lib/theme-chalk/index.css'
import elementui from 'element-ui'
import axios from 'axios'
Vue.config.productionTip = false
//使用element-ui
Vue.use(elementui)
//设置请求的基本地址
axios.defaults.baseURL='http://127.0.0.1:3000/'
//将axios挂载到全局，便于在vue项目中任何地方引用
Vue.prototype.$http=axios

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
